﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ultility;
using ToolwebAQ.database;

namespace ToolwebAQ.adminaq
{
    public partial class AQDefault : AQGlobal
    {
        tool tl = new tool();
        aquariusDBDataContext data = new aquariusDBDataContext();
        protected void Page_Load(object sender, EventArgs e)
        {
            tl.SetMetaData(this, "Quản lý connection", "", "keywords");
            tl.SetMetaData(this, "Quản lý connection", "", "Description");
            if (!IsPostBack)
            {


                int idmenu = (Request.QueryString["PageID"] != null) ? int.Parse(Request.QueryString["PageID"].ToString()) : 0;
                var LIST = data.SP_Tbl_pagemenu_SELECTDETAIL(idmenu);
                foreach (var item in LIST)
                {

                    Response.Redirect(item.Urlpage + "?PageID=" + Request.QueryString["PageID"]);
                }
            }
        }
    }
}